import WQRequest from "@/service";
export function getReportList(data) {
    return WQRequest.post({
        url: "repairaggregation/repairpagelist",
        data
    });
}

export function getReportDist(data) {
    return WQRequest.post({
        url: `basicssysdictionaryaggregation/getlistasync`,
        data
    });
}
export function getStructureTree(data) {
    return WQRequest.post({
        url: "structuremanagement/getstructuretree",
        data
    });
}
export function getStructureTreeList(data) {
    return WQRequest.post({
        url: "structuremanagement/getThirdStructureList",
        data
    });
}
//提交报修
export function saveRepair(data) {
    return WQRequest.post({
        url: "repairaggregation/addrepair",
        data
    });
}
//审核
export function checkRepair(data) {
    return WQRequest.post({
        url: "repairaggregation/repaircheck",
        data
    });
}
//验收
export function acceptRepair(data) {
    return WQRequest.post({
        url: "repairaggregation/getAcceptance",
        data
    });
}
//详情
export function getRepair(params) {
    return WQRequest.get({
        url: "repairaggregation/getrepair",
        params
    });
}
//获取流程
export function getRepairFlow(data) {
    return WQRequest.post({
        url: "repairflow/getflows",
        data
    });
}
//获取人员
export function getPersonTree(params) {
    return WQRequest.get({
        url: "repairaggregation/getDepartmentUserTree",
        params
    });
}
//派发
export function setAssign(data) {
    return WQRequest.post({
        url: "repairpersonnelassignmentaggregation/saverepairpersonnelassignment",
        data
    });
}
//处理
export function setHandler(data) {
    return WQRequest.post({
        url: "repairfeedbackaggregation/dispose",
        data
    });
}

export function getStrategyId(equipmentId) {
    return WQRequest.get({
        url: `strategyequipmentstrategyrel/getasync/${equipmentId}`
    });
}
//拖期
export function getDelayList(type) {
    return WQRequest.get({
        url: `orderdelayconfigurationmanagement/getpage/${type}`
    });
}
export function setDelay(data) {
    return WQRequest.post({
        url: "orderdelayconfiguration/updatecycle",
        data
    });
}
export function addDelay(data) {
    return WQRequest.post({
        url: "orderdelayconfiguration/add",
        data
    });
}
export function delDelay(params) {
    return WQRequest.get({
        url: "orderdelayconfiguration/deleteasync",
        params
    });
}
